package Initialize

import (
	"gitee.com/fierce_wolf/go-fox-edge-common/commEntity"
	"gitee.com/fierce_wolf/go-fox-edge-common/commRedisService"
)

func Initialize() {
	consumer := commRedisService.IRedisManager.GetRedisConsumer()
	consumer[commEntity.Type.DeviceEntity.Type()] = nil
	consumer[commEntity.Type.ChannelEntity.Type()] = nil
	consumer[commEntity.Type.OperateEntity.Type()] = nil
	consumer[commEntity.Type.ConfigEntity.Type()] = nil
	consumer[commEntity.Type.DeviceModelEntity.Type()] = nil

	reader := commRedisService.IRedisManager.GetRedisReader()
	writer := commRedisService.IRedisManager.GetRedisWriter()
	reader[commEntity.Type.DeviceEntity.Type()] = nil
	writer[commEntity.Type.DeviceEntity.Type()] = nil
}
